<?php
//Compiled by TIBlog Template Engine v2.0 , Created on : 2011-04-24 16:54:46
defined('IN_DTE') or exit('Access Denied');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<TITLE><?php
echo $_obj['mtitle'];
?>
 剧照</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<meta name="keywords" content="<?php
echo $_obj['title'];
?>
,剧照,截图,下载"/>
<meta name="description" content="<?php
echo $_obj['title'];
?>
剧照和截图"/>
<LINK rel=stylesheet type=text/css href="/static/css/global.css">
<LINK rel=stylesheet type=text/css href="/static/css/packed_douban53.css">
<LINK rel=stylesheet type=text/css href="/static/css/packed__all12.css">
<SCRIPT type=text/javascript src="/static/js/packed_jquery.min4.js"></SCRIPT>
<link type="text/css" href="/static/js/uploadify/uploadify.css"  rel="stylesheet" />
<script type="text/javascript" src="/static/js/uploadify/swfobject.js"></script>
<script type="text/javascript" src="/static/js/uploadify/jquery.uploadify.v2.1.4.min.js"></script>
</head>
<body>
<div id=header>
	<div class="topbar">
		<div class="l"></div>
	  <div class="r"><?php
echo $_obj['logintip'];
?>
</div>		
		
	</div>
	<div class=topper>
		<div class=logo>
			<p><a href="/">电影评论网</a><span>beta</span></p>
			</br>
			<p>movie.com</p>
			<p>最新、最热、最实时的电影信息和评论</p> 
		</div>
		<div class=nav>
			<ul>
				<li><a href="/movie/coming">即将上映</a>  |</li>
				<li><a href="/movie/hot">最热</a>  |</li>
				<li><a href="/movie/popular">最多喜欢</a></li>
			</ul> 
		</div>
	</div>
	<div class=searchbar>
		<form method="get" action="/search/">
			<input type="text" class="ipt" name="keywords" value="电影名称、导演或演员" onblur="if(this.value=='') this.value='电影名称、导演或演员';" 
		onfocus="if(this.value=='电影名称、导演或演员') this.value='';" /><input type="submit" class="sbtn" value="" />
		</form>
	</div>
</div>
<script type="text/javascript">
$(function () {
    var slide_step = 4,
        slide_li_num = 3,
        slide_width = 267,
        slide_prev_time = 0,
        slide_next_time = 0,
        current_index = 154,
        total_index = 257,
        slide_li = '.slide-wrap li',
        $slide_wrap = $('.slide-wrap ul'),
        $prev_btn = $('.btn-prev'),
        $next_btn = $('.btn-next'),
        $prev_a = $('.btn-prev a'),
        $next_a = $('.btn-next a'),
        slide_li_templ = '<li id="<?php
echo $_obj['PHOTO_ID'];
?>
"><a href="<?php
echo $_obj['PHOTO_PATH'];
?>
"><img src="<?php
echo $_obj['IMG_PATH'];
?>
" alt="" /></a></li>',
        slide_void_templ = '<li><a href="javascript:void(0)"></a></li>',
        slide_new_array = [],
        slideAnimate = function (d) {
            var step = d ? '+=' + slide_width + 'px' : '-=' + slide_width + 'px';
            $slide_wrap.animate({'left': step}, 'slow');
        },
        slide_btn_switch = function () {
            $prev_a.removeClass();
            $next_a.removeClass();
            if (current_index < 2) {
                $prev_a.addClass('dis');
            }
            if (current_index >= total_index - 2) {
                $next_a.addClass('dis');
            }
        },
        getPhotos = function (current_id, direction) {
            $.getJSON(
               '/j/slide_photos',
               {'pid':current_pid, 'relative':direction},
               function (data) {
                   slide_new_array = [];
                   $.each(data.photos, function (i, n) {
                       if (n.id) {
                           slide_new_array[i] = slide_li_templ.replace('<?php
echo $_obj['IMG_PATH'];
?>
', n.icon)
                               .replace('<?php
echo $_obj['PHOTO_PATH'];
?>
', n.path)
                               .replace('<?php
echo $_obj['PHOTO_ID'];
?>
', n.id);
                       } else {
                           slide_new_array[i] = slide_void_templ;
                       }
                   });
                   if (direction === 'left') {
                       $slide_wrap.prepend(slide_new_array.join(''));
                   } else {
                       $slide_wrap.append(slide_new_array.join(''));
                       slideAnimate();
                   }
               }
           );
       };

   $prev_btn.click(function () {
       if (!$('a', this).attr('class')) {
           if (slide_next_time < 1) {
               current_pid = $(slide_li).eq(slide_step).attr('id');
               getPhotos(current_pid, 'left');
           } else {
               slideAnimate(1);
           }
           slide_prev_time += 1;
           slide_step -= slide_li_num;
           current_index -= slide_li_num;
           if (slide_next_time !== 0) {
               slide_next_time -= 1;
           }
           slide_btn_switch();
           return false;
       } else { return false; }
   });
   $next_btn.click(function () {
       if (!$('a', this).attr('class')) {
           if (slide_prev_time < 1) {
               current_pid = $(slide_li).eq(slide_step).attr('id');
               getPhotos(current_pid, 'right');
           } else {
               slideAnimate();
           }
           slide_next_time += 1;
           current_index += slide_li_num;
           slide_step += slide_li_num;
           if (slide_prev_time !== 0) {
               slide_prev_time -= 1;
           }
           slide_btn_switch();
           return false;
       } else { return false; }
   });
});
var images = new Array();
function preload() {
    for (i = 0; i < preload.arguments.length; i++) {
        images[i] = new Image();
        images[i].src = preload.arguments[i];
    }
};

</script>

        
<div id="content">
<h1><?php
echo $_obj['mtitle'];
?>
的图片</h1>
<div class="grid-16-8 clearfix">
<div class="article">
<div class="opt-bar-line clearfix">
	<span class="opt-left">共<?php
echo $_obj['photos'];
?>
张</span>
	<span class="opt-mid">
		<a href="#next_photo" title="用方向键←可以向前翻页" id="pre_photo">上一张</a>&nbsp;/&nbsp;
		<a href="#next_photo" name="next_photo" title="用方向键→可以向后翻页" id="next_photo">下一张</a>
	</span>
	<span class="fright">&gt;&nbsp;<a href="/movie/<?php
echo $_obj['mid'];
?>
/photos">浏览所有图片</a></span>
</div>
<script src="http://img3.douban.com/js/photo_turn_page1.js"></script>
<?php
echo $_obj['title'];
?>

<div class="photo-show">
	<a class="mainphoto" href="#next_photo" title="点击查看下一张"><img src="/static/upload/photos/<?php
echo $_obj['filename'];
?>
" style="max-width:600px;width:expression(this.width>500?”500”:auto);"/></a>
</div>

<div class="clearfix">
	<span class="update magnifier"><a class="j a_show_login" target="_blank" href="/static/upload/photos/<?php
echo $_obj['filename'];
?>
">查看原图</a></span>
	<div class="rec-sec">
		<span class="rec-num"><b><?php
echo $_obj['recommend'];
?>
</b>人推荐</span>
		<span class="rec"><a href="/accounts/collect/<?php
echo $_obj['mid'];
?>
/" class=" j a_show_login a_rec_btn">推荐</a></span>
	</div>
</div>
<h2>您的回应：</h2>
<div style="margin-top:0px;text-align:right">
	<form name="comments" method="post" action="/photos/reply/<?php
echo $_obj['id'];
?>
">
		<p>

		  <textarea class="textarea" name="content" style="width:575px;height:50px;margin:0px"></textarea>
		  		
				
		 <!--×××××××××××××××××××××××  新增 同步微博内容  ×××××××××××××××××××××××××××××××××××××   -->	  
		  <input name="photourl" type="hidden" value="/static/upload/photos/<?php
echo $_obj['filename'];
?>
" />
		  <input name="mtitle" type="hidden" value="<?php
echo $_obj['mtitle'];
?>
" />
		  <label>
<input type="checkbox" name="checkbox" value="check" checked />
<img  src="http://www.sinaimg.cn/blog/developer/wiki/LOGO_16x16.png">同步到新浪微博&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </label>
		 <!--×××××××××××××××××××××××  新增 同步微博内容  ×××××××××××××××××××××××××××××××××××××   -->	


		  <input type="submit" class="btn" value="添加" />
		      </p>
	</form>
</div>


<div id="comments">
<?php
if (!empty($_obj['replyList'])){
if (!is_array($_obj['replyList']))
$_obj['replyList']=array(array('replyList'=>$_obj['replyList']));
$_tmp_arr_keys=array_keys($_obj['replyList']);
if ($_tmp_arr_keys[0]!='0')
$_obj['replyList']=array(0=>$_obj['replyList']);
$_stack[$_stack_cnt++]=$_obj;
foreach ($_obj['replyList'] as $rowcnt=>$replyList) {
$replyList['ROWCNT']=$rowcnt;
$replyList['ALTROW']=$rowcnt%2;
$replyList['ROWBIT']=$rowcnt%2;
$_obj=&$replyList;
?>
<table class="wr">
	<tr>
		<td valign="top" width="75"><a href="/people/<?php
echo $_obj['uid'];
?>
/"><img class="pil" src="/static/avatars/<?php
echo $_obj['avatars'];
?>
"></a></td>
		<td valign="top"><span class="wrap"><h4><?php
echo $_obj['addtime'];
?>
: <a href="/people/<?php
echo $_obj['uid'];
?>
/"><?php
echo $_obj['username'];
?>
</a></h4></span><?php
echo $_obj['contents'];
?>
<br/></td>
	</tr>
</table>
<br/>
<?php
}
$_obj=$_stack[--$_stack_cnt];}
?>
<?php
echo $_obj['pages'];
?>

</div>

</div>
<div class="aside">
<!--
<div class="mod">
	<div class="slidebar clearfix">
		<span class="btn-prev"><a href="http://movie.douban.com/photos/photo/768190809/">后退</a></span>
		<div class="slide-wrap">
			<ul class="clearfix">
				<li><a href="/photos/<?php
echo $_obj['id'];
?>
/"><img src="http://img3.douban.com/view/photo/albumicon/public/p768192641.jpg" alt="" /></a></li>
			</ul>
		</div>
		<span class="btn-next"><a href="http://movie.douban.com/photos/photo/768188541/">前进</a></span>
	</div>
</div>
-->
<div class="mod">

<h2>图片信息······</h2>
<ul class="poster-info">
<li>电影名称：<a href="/movie/<?php
echo $_obj['mid'];
?>
/"><?php
echo $_obj['mtitle'];
?>
</a></li>
<li class="pl">文件大小：<?php
echo $_obj['filesize'];
?>
</li>
<li class="pl">来自：<a href="/people/<?php
echo $_obj['uid'];
?>
/"><?php
echo $_obj['username'];
?>
</a></li>
<li class="pl">上传于：&nbsp;<?php
echo $_obj['addtime'];
?>
</li>
</ul>
<p class="pl2">
&gt;&nbsp;<a href="/movie/<?php
echo $_obj['mid'];
?>
/">去<?php
echo $_obj['mtitle'];
?>
的页面</a>
</p>
</div>


</div>
</div>
    </div>


<DIV class=clear></DIV>
<DIV id="footer">
	<DIV class="left">
		&copy; 2010 Movie.com, All Rights Reserved.&nbsp;&nbsp;&nbsp;苏ICP没有备案号&nbsp;&nbsp;<BR>
		<SPAN><?php
echo $_obj['debuginfo'];
?>
</SPAN>
	</DIV>
	<DIV class="right">
		<A href="/about/aboutus">关于我们</A>
		<A href="/about/flinks">友情链接</A>
		<A href="/about/contact">联系及合作</A>
		<A href="/about/feedback">投诉与建议</A>
		<A href="/about/sitemap">站点地图</A>
		<A href="/about/sitemap">使用帮助</A>		 
	</DIV>
</DIV>       
</body></html>